/*
CREATE TABLE "base_de_chapter_description" (
  "sequence_nbr" text(20) NOT NULL,
  "oss_url" text(255) NOT NULL,
  "library_code" text(50),
  "type_name" text(255),
  "type" integer(4),
  "level" integer(4),
  "rec_user_code" text(32),
  "rec_status" text(4),
  "rec_date" integer(20),
  "extend1" text(64),
  "extend2" text(64),
  "extend3" text(64),
  "description" text(255),
  "agency_code" text(64),
  "product_code" text(64)
);
*/
use rbatis::crud;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct BaseDeChapterDescription {
    pub sequence_nbr: String,
    pub oss_url: String,
    pub library_code: Option<String>,
    pub type_name: Option<String>,
    pub r#type: Option<i32>,
    pub level: Option<i32>,
    pub rec_user_code: Option<String>,
    pub rec_status: Option<String>,
    pub rec_date: Option<i64>,
    pub extend1: Option<String>,
    pub extend2: Option<String>,
    pub extend3: Option<String>,
    pub description: Option<String>,
    pub agency_code: Option<String>,
    pub product_code: Option<String>,
}
crud!(BaseDeChapterDescription {}, "base_de_chapter_description");
